<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>NetFlow 网络流量管理系统</title>
    <!-- <link rel="stylesheet" href="css/style.css"> -->
    <script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3/dist/echarts.min.js"></script>

    <link rel="stylesheet" href="/luci-static/resources/netflow/css/style.css">
    <script src="/luci-static/resources/netflow/js/overview.js"></script>
</head>
<body>
    <header>
        <div class="container">
            <h1>NetFlow 网络流量管理系统</h1>
            <nav>
                <ul>
                    <!-- <li><a href="index.html" class="active">系统概览</a></li>
                    <li><a href="statistics.html">统计信息</a></li>
                    <li><a href="settings.html">系统设置</a></li>
                    <li><a href="docs.html">文档</a></li> -->

                    <li><a href="overview" class="active">系统概览</a></li>
                    <!-- <li><a href="overview">系统概览</a></li> -->
                    <li><a href="statistics">统计信息</a></li>
                    <li><a href="settings">系统设置</a></li>
                    <li><a href="docs">文档</a></li>

                </ul>
            </nav>
        </div>
    </header>

    <main class="container">
        <section class="card">
            <h2>系统状态</h2>
            <div class="status-grid">
                <div class="status-item">
                    <div class="status-label">状态:</div>
                    <div class="status-value" id="status"><span class="status-running">运行中</span></div>
                </div>
                <div class="status-item">
                    <div class="status-label">版本:</div>
                    <div class="status-value" id="version">v1.0.5</div>
                </div>
                <div class="status-item">
                    <div class="status-label">运行时间:</div>
                    <div class="status-value" id="uptime">5天 3小时 27分钟</div>
                </div>
            </div>
        </section>
        
        <section class="card">
            <h2>网络负载</h2>
            <div class="status-grid">
                <div class="status-item">
                    <div class="status-label">当前负载:</div>
                    <div class="status-value" id="load_factor">65.3%</div>
                </div>
                <div class="status-item">
                    <div class="status-label">拥塞指数:</div>
                    <div class="status-value" id="congestion_index">12.7%</div>
                </div>
                <div class="status-item">
                    <div class="status-label">当前带宽使用:</div>
                    <div class="status-value" id="current_bw">65.3 Mbps</div>
                </div>
                <div class="status-item">
                    <div class="status-label">总带宽:</div>
                    <div class="status-value" id="total_bw">100.0 Mbps</div>
                </div>
            </div>
        </section>
        
        <section class="card">
            <h2>带宽分配</h2>
            <div id="bandwidth_chart" class="chart"></div>
        </section>
        
        <section class="card">
            <h2>实时流量监控</h2>
            <div id="traffic_chart" class="chart"></div>
        </section>
        
        <section class="card">
            <h2>应用流量分布</h2>
            <div id="app_chart" class="chart"></div>
        </section>
    </main>

    <footer>
        <div class="container">
            <p>&copy; 2025 NetFlow 开发团队 | <a href="docs.html">文档</a> | <a href="#">GitHub</a></p>
        </div>
    </footer>

    <script src="js/overview.js"></script>
</body>
</html>
